package org.example.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.model.User;

import java.util.List;

@Mapper
public interface UserMapper {
    User login(@Param("username") String username,@Param("password") String password);

    List<User> getUserList(String username);

    int addUser(User user);

    int deleteUser(int id);

    int updateUser(User user);

}
